package com.striver.registry.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.consul.ConsulProperties;

import java.util.List;

@Getter
@Setter
@ConfigurationProperties(prefix = "striver.registry")
public class StriverRegistyProperties {
    private String host = "localhost";
    private Integer port = 8888;
    private boolean preferIpAddress = true;
    private String ipAddress;
    private List<String> tags;
    private String healthCheckPath = "/actuator/health";
    private String healthCheckInterval = "10s";
    private String scheme = "http";
    private ConsulProperties.TLSConfig tls;
    private String instanceId;
    private Type type;

    public enum Type{
        nacos,
        consul
    }
}
